package com.spark.sparkanswerserver.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.spark.sparkanswerserver.domain.Node;
import com.spark.sparkanswerserver.pojo.DateEnity;
import com.spark.sparkanswerserver.pojo.NodeEntity;

import java.util.List;
import java.util.Map;

/**
 * @version 1.0
 * @Author Xing
 * @Date 2023/2/23 13:28
 */
public interface NodeService {
    public String MatchReason(String name);

    /**
     * 获取关系图
     * @param name
     * @return
     */
    public DateEnity GetNode(String name);

    /**
     * 彻底删除节点
     * @param name
     */
    public boolean DeleteNode(String name);

    /**
     * 查询节点数
     * @param name
     * @return
     */
    public Integer MatchNumber(String name);

    /**
     * 创建节点
     * @param name
     * @return
     */
    Node CreateNode(String name);

    /**
     * 创建节点
     * @param name1
     * @param name2
     */
    public void CreateRelation(String name1,String name2);

    /**
     * 查询
     * @return
     */
    public Page MatchAllNodes(Map<String,Object> map);

    /**
     * 获取数据
     * @return
     */
    public Integer MatchNumber();
public List<NodeEntity> MatchOne();
}
